package com.example.administrator.readbook.utils;

import android.app.Activity;

import com.example.administrator.readbook.R;

/**
 * Created by Administrator on 2018/10/18.
 */

public class ChangeThemeUtil {
    public static boolean isChange = false;

    public static void changeTheme(Activity activity) {
        if (isChange) {
            activity.setTheme(R.style.NightTheme);
        } else {
            activity.setTheme(R.style.DayTheme);
        }
    }
}
